package com.yourcompany.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("credit_repayment")
@Schema(description = "信用还款记录")
public class CreditRepayment extends BaseEntity {
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "账单月份")
    private String billMonth;
    
    @Schema(description = "应还金额")
    private BigDecimal amount;
    
    @Schema(description = "已还金额")
    private BigDecimal paidAmount;
    
    @Schema(description = "还款状态：0-未还款 1-部分还款 2-已还清")
    private Integer status;
    
    @Schema(description = "还款时间")
    private LocalDateTime payTime;
    
    @Schema(description = "还款方式")
    private String payMethod;
    
    @Schema(description = "交易单号")
    private String tradeNo;
    
    @Schema(description = "到期时间")
    private LocalDateTime dueDate;
    
    @Schema(description = "备注")
    private String remark;
} 